﻿using KinonekoSoftware.CodariaDB.Documents.Metadatas;
using KinonekoSoftware.CodariaDB.Documents.Templates;

namespace KinonekoSoftware.CodariaDB.Documents
{
    [DebuggerDisplay("{Name}-{Id}-{Type}")]
    public class Instance : FullObject
    {
        public string           Name     { get; set; }
        public string           Intro    { get; set; }
        public InstanceType     Type     { get; init; }
        public InstanceTemplate Template { get; set; }
        
        // public MetadataCollection Metas { get; init; }
    }

    public static class InstanceStatic
    {
        public static Instance CreateInstance(string id, string name, string intro, InstanceType type) => new Instance
        {
            Id    = id,
            Name  = name,
            Intro = intro,
            // Metas = new MetadataCollection(),
            Type  = type,
        };
    }
}